#include <windows.h>
#include<d3d10.h>
#include<D3DX10.h>
#include "global.h"
#include "D3DApp.h"
#include "Scene.h"
#include "ColoredCube.h";
#include "IObjectClass.h"
#include "PeaksValleys.h"
#include "WavesApp.h"

INT WINAPI WinMain(HINSTANCE hinstance, HINSTANCE hPreInstance, LPSTR IpCmdLine, int nShowCmd)
{
	Scene app(hinstance);
	ColoredCube * pcolorCube = new ColoredCube();
	PeaksValleys * peakvalley = new PeaksValleys();
	WavesApp * waves = new WavesApp();
	//app.addItem((IObjectClass*)peakvalley);
	//app.addItem((IObjectClass*)pcolorCube);
	app.addItem((IObjectClass*)waves);
	
	app.initApp();
	return app.run();
}
